package com.lg.erp.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lg.erp.entity.SRole;
import com.lg.erp.mapper.RoleMapper;
import com.lg.erp.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ligen
 * @since 2021-04-12
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, SRole> implements IRoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public IPage<SRole> getRoleByPage(Page<SRole> page) {
        return roleMapper.selectRoleByPage(page);
    }
}
